<div ng-include="sys_html('_menu')"></div>
<div class="order-list-page" ng-if="pagedata.op == 'list'">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">待抢单</div>
		<div class="fui-header-right"></div>
	</div>
	<div class='fui-content order-list' style="top:2.5rem" ng-repeat="item in pagedata.list">
		<div class="weui_cells" style="margin:2%">
			<div class="weui_noborder" id="r-result">
				<div class="weui_cell_hd green-spot"></div>
				<div class="weui_cell_bd weui_cell_primary" style="padding:0 0.5rem;font-size:0.65rem">{{item.start_seat}}</div>
			</div>
			<div class="weui_noborder" id="r-result">
				<div class="weui_cell_hd f60-spot"></div>
				<div class="weui_cell_bd weui_cell_primary" style="padding:0 0.5rem;font-size:0.65rem">{{item.start_dest}}</div>
			</div>
			<div class="fui-icon-group noborder col-3">
                <a class="fui-icon-col-sm external" href="">
					<div class="text" style="color: #666666;">行程距离</div>
                    <div class="icon"><i class="icon jinyunicon icon-ditu" style="font-size:0.85rem"/></div>
                    <div class="text" style="color: #F60;">{{item.juli}}</div>
                </a>
                <a class="fui-icon-col-sm external" href="" ng-show="item.time">
					<div class="text" style="color: #666666;">预计时间</div>
                    <div class="icon"><i class="icon jinyunicon icon-shijian" style="font-size:0.85rem"/></div>
                     <div class="text" style="color: #F60;">{{item.time}}</div>
                </a>
                <a class="fui-icon-col-sm external" href="" data-nocache="true">
					<div class="text" style="color: #666666;">预计价格</div>
                    <div class="icon"><i class="icon jinyunicon icon-goumai" style="font-size:0.85rem"/></div>
                    <div class="text" style="color: #F60;">￥{{item.price1}}元</div>
                </a>
			</div>
			<div class="weui_btn_all_sm" style="background:#f60" href="javascript:" ng-click="pagedata.info.id=item.id;post(pagedata.info,'get')">立即抢单</div>
		</div>
	</div>
	<div class="content-empty" ng-if="pagedata.list == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有订单！</p>
	</div>
</div>
<div class="order-list-page" ng-if="pagedata.op == 'detail'">
	<div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">我的订单</div>
		<div class="fui-header-right"></div>
	</div>
	<div class='fui-content navbar order-list'>
		<div class="fui-list-group merchgroup">
			<div class="fui-list jump">
                <a class="fui-list-media">
                    <img class="round" src="{{tomedia(driver.avatar) || '../core/resource/images/nopic.jpg'}}" />
                </a>
                <div class="fui-list-inner">
                    <div class="title">{{driver.name || '某师傅'}}</div>
					<div class="title" style="font-size:0.65rem">电话：{{driver.mobile}}</div> 
                </div>
                <a class="jump" href="tel:{{item.phone}}">
					<i class="icon jinyunicon icon-phone" style="width: 2rem; text-align: center;"></i>
				</a>
            </div>
		</div>
		<div class="weui_cells" style="margin:2%">
			<div class="weui_cell" id="r-result">
				<div class="fui-list jump text-center">
					<a class="fui-list-inner" href="">
						<div class="title" style="color: #333333;"><span style="font-size:22px">18.00</span><span>元</span></div>
						<div class="subtitle" style="color: #666666;font-size:0.56rem"><span class="fui-remark jump">查看明细</span><span class="fui-remark jump">开具发票</span></div>
					</a>
				 </div>
			</div>
			<div class="weui_cell" id="r-result">
				<div class="fui-list jump text-center">
					<a class="fui-list-inner" href="">
						<div class="title" style="color: #333333;">司机“安全平稳”驾驶了吗？</div>
						<div class="subtitle" style="color: #666666;font-size:0.56rem"><span class="label jylabel-info">安全</span><span class="label jylabel-info">不安全</span></div>
					</a>
				 </div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
function myhome(){
	var params = {
					'plugin':'jy_taxi',
					'action':'home',
					'callback':function(data){
						if(data.error !=1){
							scope.pagedata.member = data.member
							scope.$apply();
						}else{
							alert('1111');
						}
					}
	}
	scope.post_json(params);
	$('#myhome').modal();
}
</script>
